import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '微信OpenId',
            dataIndex: 'openId',
            width: 200,
        },
        {
            title: '微信模板Id',
            dataIndex: 'templateId',
            width: 200,
        },
        {
            title: '微信Id',
            dataIndex: 'weChatId',
            width: 200,
        },
        {
            title: '跳转路径',
            dataIndex: 'url',
            width: 200,
        },
        {
            title: 'json存储内容',
            dataIndex: 'messageInfo',
            width: 200,
        },
        {
            title: '错误信息',
            dataIndex: 'errorInfo',
            width: 200,
        },
        {
            title: '1本地调用,2机票调用',
            dataIndex: 'sourceType',
            width: 200,
        },
        {
            title: '0发送失败,1发送成功',
            dataIndex: 'sendState',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '微信OpenId',
            field: 'openId',
            component: 'Input',
            required: true,
        },
        {
            label: '微信模板Id',
            field: 'templateId',
            component: 'Input',
            required: true,
        },
        {
            label: '微信Id',
            field: 'weChatId',
            component: 'Input',
            required: true,
        },
        {
            label: '跳转路径',
            field: 'url',
            component: 'Input',
            required: true,
        },
        {
            label: 'json存储内容',
            field: 'messageInfo',
            component: 'Input',
            required: true,
        },
        {
            label: '错误信息',
            field: 'errorInfo',
            component: 'Input',
            required: true,
        },
        {
            label: '1本地调用,2机票调用',
            field: 'sourceType',
            component: 'Input',
            required: true,
        },
        {
            label: '0发送失败,1发送成功',
            field: 'sendState',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
